import { Component, OnInit } from '@angular/core';
import { DETAIL_FUNCTIONS } from './const-config';
import { Router, ActivatedRoute } from '@angular/router';
import { GlobalService } from './../../global/global.service';
import { getSessionUserInfo } from '../../util/userInfo';

@Component({
	selector: 'app-self',
	templateUrl: './self.component.html',
	styleUrls: ['./self.component.less']
})
export class SelfComponent implements OnInit {

	detailFunctions = DETAIL_FUNCTIONS;
	loginUserInfo = null;
	constructor(private router: Router, private activatedRoute: ActivatedRoute, private globalService: GlobalService) { }

	ngOnInit() {
		this.globalService.setMessageText(false, "个人中心");
		this.loginUserInfo = getSessionUserInfo();
	}
	slidDetailPage(detailPageItem) {
		this.router.navigate([detailPageItem.routhPath]);
	}
}
